package com.resourcestore.dao;

import java.util.List;

import com.resourcestore.dao.BaseDao;
import com.resourcestore.model.CourseFileSrcPrivate;
import com.resourcestore.utils.tag.Pagination;

public class CourseFileSrcPrivateDao extends BaseDao {

	public List<CourseFileSrcPrivate> selectCourseFileSrcPrivate(){
		List<CourseFileSrcPrivate> list=this.queryForList("selectCourseFileSrcPrivate");
		return list;
	}
	
	public List<CourseFileSrcPrivate> selectCourseFileSrcPrivateByCourseFileIdString(CourseFileSrcPrivate courseFileSrcPrivate){
		List<CourseFileSrcPrivate> list=this.queryForList("selectCourseFileSrcPrivateByCourseFileIdString",courseFileSrcPrivate);
		return list;
	}
	
	public List<CourseFileSrcPrivate> selectCourseFileSrcPrivatePage(CourseFileSrcPrivate courseFileSrcPrivate,Pagination pagination){
		List<CourseFileSrcPrivate> list = this.queryForPage("selectCourseFileSrcPrivatePage", courseFileSrcPrivate,pagination);
		return list;
	}
	
	public int queryCourseFileSrcPrivateNum(CourseFileSrcPrivate courseFileSrcPrivate) {
		return this.queryNum("selectCourseFileSrcPrivateCount", courseFileSrcPrivate);
	}
	
	public CourseFileSrcPrivate selectCourseFileSrcPrivateById(CourseFileSrcPrivate courseFileSrcPrivate){
		return (CourseFileSrcPrivate)this.queryForObject("selectCourseFileSrcPrivateById", courseFileSrcPrivate);
	}
	
	public void insertCourseFileSrcPrivate(CourseFileSrcPrivate courseFileSrcPrivate){
		this.insert("insertCourseFileSrcPrivate", courseFileSrcPrivate);		
	}
	
	public void updateCourseFileSrcPrivate(CourseFileSrcPrivate courseFileSrcPrivate){
		this.update("updateCourseFileSrcPrivate", courseFileSrcPrivate);	
	}
	
	public void deleteCourseFileSrcPrivate(CourseFileSrcPrivate courseFileSrcPrivate){
		this.delete("deleteCourseFileSrcPrivate", courseFileSrcPrivate);
	}
	
	public void deleteMoreCourseFileSrcPrivate(CourseFileSrcPrivate courseFileSrcPrivate){
		this.delete("deleteMoreCourseFileSrcPrivate", courseFileSrcPrivate);
	}
}
